package com.hk.Mgr.web.controller.app;

import com.hk.Mgr.web.message.StatusCode;
import com.hk.base.BaseCtrl;
import com.hk.base.ResponseBase;
import com.hk.commons.LongId;
import com.hk.commons.StringHelper;
import com.hk.commons.entity.Activity;
import com.hk.commons.entity.FinancialLog;
import com.hk.commons.utils.sys.DateHelper;
import com.hk.commons.vo.ActivityReq;
import com.hk.commons.vo.ActivityRes;
import com.hk.service.IFinancialLog;
import com.hk.service.kyc.IActivity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.*;

@Controller
@RequestMapping(value = BaseCtrl.App + "/nowCtrl")
public class AppNowCtrl extends BaseCtrl {



	/**
	 * 获取时间
	 * @return
     */
	@RequestMapping(value = "/getTime", method = RequestMethod.GET)
	@ResponseBody
	public ResponseBase<Map<String, String>> getTime() {

		ResponseBase<Map<String, String>> resp = new ResponseBase<>();

		Map<String, String>  map = new HashMap<>();

		Long timestamp = System.currentTimeMillis();

		map.put("timestamp", timestamp.toString());

		resp.setResult(map);
		resp.setResultCode(StatusCode.SUCCESS.key());
		resp.setMsg("成功");
		return resp;
	}
}
